home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / rpcsvc / yppasswd.x < prev    next >
Text File  |  1990-01-29  |  741b  |  39 lines

  1. /*    @(#)yppasswd.x    1.2 88/05/08 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * @(#) from SUN 1.2
  6.  */
  7.  
  8. /*
  9.  * YP password update protocol
  10.  * Requires unix authentication
  11.  */
  12. program YPPASSWDPROG {
  13.     version YPPASSWDVERS {
  14.         /*
  15.          * Update my passwd entry 
  16.          */
  17.         int
  18.         YPPASSWDPROC_UPDATE(yppasswd) = 1;
  19.     } = 1;
  20. } = 100009;
  21.  
  22.  
  23. struct passwd {
  24.     string pw_name<>;    /* username */
  25.     string pw_passwd<>;    /* encrypted password */
  26.     int pw_uid;        /* user id */
  27.     int pw_gid;        /* group id */
  28.     string pw_gecos<>;    /* in real life name */
  29.     string pw_dir<>;    /* home directory */
  30.     string pw_shell<>;    /* default shell */
  31. };
  32.  
  33. struct yppasswd {
  34.     string oldpass<>;    /* unencrypted old password */
  35.     passwd newpw;        /* new passwd entry */
  36. };
  37.  
  38.  
  39.